import pygame.display as pdis
import pygame.time as pt
import pygame.display as dis
from res.conf import tick


class ZScene(object):
    def __init__(self, x=0, y=0):
        self.screen = dis.get_surface()
        self.x, self.y = x, y
        self.Clock = pt.Clock()
        self.tick = tick
        self.isRunning = True

    def draw(self):
        pass

    def update(self):
        pass

    def start(self):
        while True:
            self.ticks = self.Clock.tick(self.tick)
            self.update()
            self.draw()
            pdis.update()

    def pause(self):
        self.isRunning = False

    def play(self):
        self.isRunning = True